$(document).ready(function() {
    // set up the news accordion on the lower page
    $("#birthday").datepicker({
        yearRange: "-40:+0",
        changeMonth: true,
        changeYear: true
    });

    // create the image rotator
    
    $("input:submit").button();
    $("#sidebar").remove();
    $("#personalFieldsCollection").css("width","900px");
    $("#regFormBody").validate({
      rules: {
        firstname: "required",
        lastname:"required",
        gender:"required",
        presadd:"required",
        permadd:"required",
        fathername:"required",
        mothername:"required",
        email: {
           required : true,
           email : true
        },
        birthday:"required",
        exchange:"required"
      }

    });


});

 

